<%@ page language="java" contentType="text/html; charset=utf8" pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

	<div align="center">
		<table id="data" cellspacing="0" cellpadding="0" width="416">
			<tr>
				<td class="box_top_left"></td>
				<td  width="420" class="box_top_centr"></td>
				<td class="box_top_right"></td>
			</tr>
			<tr>
				<td class="box_left"></td>
				<td bgcolor=f8be93 align="right">
					<a class="close" href="/CoffiSweetDreams/index.htm">Закрыть.</a>
				</td>
				<td class="box_right"></td>
			</tr>
			<tr>
				<td height="35" class="box_left"></td>
				<td height="35" bgcolor="f8be93">
					<div class="user">История заказов</div>
				</td>
				<td height="35" class="box_right"></td>
			</tr>
			<tr>
				<td class="box_left"></td>
				<td  bgcolor="f8be93" align="center">
					<br/>
					<table cellpadding="0" class="list_user" border="1" bordercolor="#000000" width="90%" cellspacing="0" height=240px>
						<tr>
							<td width="75"  class="list_user_head">Дата</td>
							<td width="200" class="list_user_head">Заказано</td>
							<td class="list_user_head"> Сумма </td>
						</tr>
						<tr>
							<td colspan="5">
								<div style="height: 200px; width: 100%; overflow-y: scroll; text-align: center">
									<table cellpadding="0" class="list_user" width="100%" cellspacing="0">
										<c:forEach items="${historylist}" var="orders" varStatus="status">
											<tr>
												<td width="75"  class="list_admin_center_dish">${orders.getDate()}</td>
												<td width="200" class="list_admin_center_dish" >${orders.getDishes()}</td>
												<td   class="list_admin_center_dish">${orders.getPrice()}</td>
											</tr>
										</c:forEach>
									</table>
								</div>	
							</td>
						</tr>
					</table>	
					<br/>				
				</td>
				<td class="box_right"></td>
			</tr>
			<tr>
				<td class="box_bottom_left"></td>
				<td class="box_bottom_centr"></td>
				<td class="box_bottom_right"></td>
			</tr>
		</table>
	</div>

	